package com.spic.business.hidden.place.domain;

import com.spic.common.core.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 隐患地点对象 hidden_place
 *
 * @author yangjie
 * @date 2021-10-15
 */
public class HiddenPlace
{
    private static final long serialVersionUID = 1L;

    /** id主键 */
    private String id;
    private String parentId;

    /** 地点名称 */
    @Excel(name = "地点名称")
    private String placeName;

    /** 审核员 */
    @Excel(name = "审核员" ,cahceType = Excel.CacheType.USER)
    private String auditor;

    /** 子部门 */
    private List<HiddenPlace> children = new ArrayList<HiddenPlace>();
    public String getId()
    {
        return id;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public List<HiddenPlace> getChildren()
    {
        return children;
    }

    public void setChildren(List<HiddenPlace> children)
    {
        this.children = children;
    }

    public String getParentId()
    {
        return parentId;
    }

    public void setParentId(String parentId)
    {
        this.parentId = parentId;
    }

    public void setPlaceName(String placeName)
    {
        this.placeName = placeName;
    }

    public String getPlaceName()
    {
        return placeName;
    }
    public void setAuditor(String auditor)
    {
        this.auditor = auditor;
    }

    public String getAuditor()
    {
        return auditor;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("placeName", getPlaceName())
            .append("auditor", getAuditor())
            .toString();
    }
}
